//
//  MyPreferentialCouponTableViewCell.m
//  lmq
//
//  Created by apple on 2017/3/10.
//  Copyright © 2017年 yuanxin. All rights reserved.
//

#import "MyPreferentialCouponTableViewCell.h"
#import "MyPerferentialCouponsModel.h"
#import "ToolAboutTime.h"

@implementation MyPreferentialCouponTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModelOfCoupons:(MyPerferentialCouponsModel *)modelOfCoupons{

    self.vouchersLabel.text = modelOfCoupons.use_vouchers;
    
    NSString *str1 = @"满";
    NSString *str2 = [str1 stringByAppendingString:modelOfCoupons.all_vouchers];
    self.allMoneyLabel.text = [str2 stringByAppendingString:@"元使用"];
//_dataLabel.text = [ToolAboutTime getTimeStrByTimeSp:model.createDate];时间轴用法
    
    NSString *str3 = [ToolAboutTime getTimeStrByTimeSp:modelOfCoupons.start_time];
    NSString *str4 = [str3 stringByAppendingString:@"-"];
    NSString *str5 = [ToolAboutTime getTimeStrByTimeSp:modelOfCoupons.end_time];
    
    self.timeLabel.text = [str4 stringByAppendingString:str5];
    



}
@end
